[gd_scene load_steps=7 format=3 uid="uid://d216kyvf7xmb8"]

[ext_resource type="Script" path="res://scenes/box/display/display.gd" id="1_42g6x"]
[ext_resource type="Texture2D" uid="uid://c7ae8w7eipuct" path="res://assets/box/display.svg" id="2_2q4dy"]
[ext_resource type="Texture2D" uid="uid://bwkwghs3470ri" path="res://assets/box/noise.svg" id="3_8g6e1"]
[ext_resource type="Texture2D" uid="uid://cr1sxxs8ba5yo" path="res://assets/box/display_cracks.svg" id="4_5sivo"]
[ext_resource type="Texture2D" uid="uid://csepiholpsgm6" path="res://assets/box/eyes.svg" id="4_q1b1n"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_nepi5"]
size = Vector2(63, 63)

[node name="Display" type="Area2D"]
collision_layer = 8
collision_mask = 16
script = ExtResource("1_42g6x")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_nepi5")

[node name="Sprites" type="Node2D" parent="."]

[node name="Display" type="Sprite2D" parent="Sprites"]
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_2q4dy")

[node name="Noise" type="Sprite2D" parent="Sprites"]
visible = false
scale = Vector2(0.25, 0.25)
texture = ExtResource("3_8g6e1")

[node name="Player" type="Sprite2D" parent="Sprites"]
visible = false
scale = Vector2(0.25, 0.25)
texture = ExtResource("4_q1b1n")

[node name="CrackedDisplay" type="Sprite2D" parent="Sprites"]
visible = false
scale = Vector2(0.25, 0.25)
texture = ExtResource("4_5sivo")

[node name="Index" type="Label" parent="Sprites"]
visible = false
offset_left = -32.0
offset_top = -32.0
offset_right = 32.0
offset_bottom = 32.0
theme_override_colors/font_color = Color(0.25098, 0.670588, 1, 1)
theme_override_colors/font_outline_color = Color(0.0627451, 0.0627451, 0.12549, 1)
theme_override_constants/outline_size = 5
theme_override_font_sizes/font_size = 40
horizontal_alignment = 1
vertical_alignment = 1

[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="area_exited" from="." to="." method="_on_area_exited"]
[connection signal="input_event" from="." to="." method="_on_input_event"]
